package com.clouds.wms.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class StringRowMapper implements RowMapper<String> {

	private static StringRowMapper stringRowMapper = null;
	
	public static StringRowMapper getStringRowMapper() {
		if(stringRowMapper == null) {
			stringRowMapper = new StringRowMapper();
		}
		return stringRowMapper;
	}
	public String mapRow(ResultSet rs, int rowNum) throws SQLException {
		return rs.getString(1);
	}
	
}
